import { _decorator, Component, Node, tween, v3, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Money')
export class Money extends Component {

    start() {
        tween(this.node)
            .to(4, { eulerAngles: v3(0, -360, 0) })
            .call(() => { this.node.eulerAngles = Vec3.ZERO; })
            .union()
            .repeatForever()
            .start();
    }

    update(deltaTime: number) {

    }
}


